#!/usr/bin/env python

import sys
import os

os.system("edje_cc ./data/theme/sudoku_new.edc -id ./data/theme/image/ -fd ./data/theme/fonts/")
from ez_setup import use_setuptools
use_setuptools('0.6c3')

from setuptools import setup, find_packages, Extension
from distutils.sysconfig import get_python_inc
from glob import glob
import commands

dist = setup(name='om-sudoku',
    version='0.03',
    author='Erin Yueh',
    author_email='erinyueh@gmail.com',
    description='sudoku puzzle game by python efl',
    url='http://code.google.com/p/om-sudoku/',
    download_url=
        'svn checkout http://om-sudoku.googlecode.com/svn/trunk/ om-sudoku-read-only',
    license='GNU GPL',
    package_dir={'':'src'},
    packages=['sudoku'],
    scripts=['src/sudoku_main.py'],
    install_requires=['python-evas>=0.2.1'],
    setup_requires=['python-evas>=0.2.1'],
    data_files=[
	('om-sudoku', ['data/theme/sudoku_new.edj']),
    ('pixmaps',['data/image/om-sudoku.png']),
    ('applications', ['data/om-sudoku.desktop'])
]
)

installCmd = dist.get_command_obj(command="install_data")
installdir = installCmd.install_dir
installroot = installCmd.root

if not installroot:
    installroot = ""

if installdir:
    installdir = os.path.join(os.path.sep,
        installdir.replace(installroot, ""))
